package kr.couponplay.android.activity.event;

import java.util.List;

import kr.couponplay.android.domain.deal.Deal;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentStatePagerAdapter;

public class EventFragmentPagerAdapter extends FragmentStatePagerAdapter {
	private List<Deal> deals;
	
	public EventFragmentPagerAdapter(EventActivity activity, List<Deal> deals) {
		super(activity.getSupportFragmentManager());
        this.deals = deals;
    }

	@Override
	public Fragment getItem(int position) {
		return EventResultFragment.newInstance(deals);
    }
	
	@Override
	public int getItemPosition(Object item) {
		return 0;
    }
	
	@Override
	public int getCount() {
		return 1;
	}
}
